package com.tw;

public class Fourth {

    public static void main(String[] args) {
        int n = 3;
        Fourth f = new Fourth();
        f.generateRightTriangle(3);

    }

    public void generateRightTriangle(int n) {
        int j, i;
        for (j = 0; j < n; j++) {
            for (i = 0; i < j + 1; i++) {
                System.out.print("* ");
            }
            System.out.println("");
        }

    }
}